package com.cfpamf.athean.rabbit.mq.plus.repository;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cfpamf.athean.rabbit.mq.plus.domain.po.RabbitMqPlusConsumerTaskPO;

/**
 * <p>
 * rabbitMqPlus消费任务表 服务类
 * </p>
 *
 * @author Andy（陈洪桥）
 * @since 2022-12-11 22:32:32
 */
public interface RabbitMqPlusConsumerTaskRepository extends IService<RabbitMqPlusConsumerTaskPO> {

    RabbitMqPlusConsumerTaskPO selectOneByQueueNameAndConsumerTypeCode(String queueName, String consumerTypeCode);

    boolean updateByQueueNameAndConsumerTypeCode(RabbitMqPlusConsumerTaskPO po);

    List<RabbitMqPlusConsumerTaskPO> queryTodoDataByStatus(List<Integer> status);

    boolean deleteInvalidDataByDay(int day);

}
